package com.atguigu.behavior.strategy;

public class HomeDuck extends Duck{



    public HomeDuck() {
        this.setFlyBehavior(new BadFlyBehavior());
        this.setQuackBehavior(new GagaQuackBehavior());
    }

    @Override
    public void init() {
        System.out.println("家鸭");
    }
}
